/*
   Copyright (c) 2023 李伟国
   learner-platform is licensed under Mulan PSL v2.
   You can use this software according to the terms and conditions of the Mulan PSL v2.
   You may obtain a copy of Mulan PSL v2 at:
            http://license.coscl.org.cn/MulanPSL2
   THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
   See the Mulan PSL v2 for more details.
*/

package cn.platform.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer;
/**
 * judge相关配置
 */
@Component
@ConfigurationProperties(
        prefix = "learner.judge.source"
)
public class JudgeSourceProperties implements WebSocketMessageBrokerConfigurer {

    /**
     * 语言的配置路径
     */
    private String languageConfigPath;

    /**
     * acm-online-judge模块所在的地址
     */
    private String onlineJudgePath;

    /**
     * 题目的根路径
     */
    private String problemRootPath;

    public String getLanguageConfigPath() {
        return languageConfigPath;
    }

    public void setLanguageConfigPath(String languageConfigPath) {
        this.languageConfigPath = languageConfigPath;
    }

    public String getOnlineJudgePath() {
        return onlineJudgePath;
    }

    public void setOnlineJudgePath(String onlineJudgePath) {
        this.onlineJudgePath = onlineJudgePath;
    }

    public String getProblemRootPath() {
        return problemRootPath;
    }

    public void setProblemRootPath(String problemRootPath) {
        this.problemRootPath = problemRootPath;
    }

    @Deprecated
    private String testData;  // 测试根目录
    @Deprecated
    private String onlineJudge;
    @Deprecated
    private String languageConfig;  // 语言目录
    @Deprecated
    private String codeResultRootPath;  // 代码结果生成的根路径
    @Deprecated
    public String getTestData() {
        return testData;
    }
    @Deprecated
    public void setTestData(String testData) {
        this.testData = testData;
    }
    @Deprecated
    public String getOnlineJudge() {
        return onlineJudge;
    }
    @Deprecated
    public void setOnlineJudge(String onlineJudge) {
        this.onlineJudge = onlineJudge;
    }
    @Deprecated
    public String getLanguageConfig() {
        return languageConfig;
    }
    @Deprecated
    public void setLanguageConfig(String languageConfig) {
        this.languageConfig = languageConfig;
    }
    @Deprecated
    public String getCodeResultRootPath() {
        return codeResultRootPath;
    }
    @Deprecated
    public void setCodeResultRootPath(String codeResultRootPath) {
        this.codeResultRootPath = codeResultRootPath;
    }
}
